projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
153241d
)
Pacify buggy old GCC with a cast
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 6 May 2020 17:57:18 +0000
(10:57 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 6 May 2020 18:01:57 +0000
(11:01 -0700)
* src/bignum.h (bignum_integer): Pacify GCC 4.8.5.
Problem reported by Andreas Schwab in:
https://lists.gnu.org/r/emacs-devel/2020-05/msg00781.html
src/bignum.h
patch
|
blob
|
history
diff --git
a/src/bignum.h
b/src/bignum.h
index ad9021f15fd22708ac6798a5707b5189ebf2bfd6..4a906c3c0eb3562ebd5adac2e6475f7ca6c65b2b 100644
(file)
--- a/
src/bignum.h
+++ b/
src/bignum.h
@@
-108,7
+108,8
@@
bignum_integer (mpz_t *tmp, Lisp_Object i)
if (FIXNUMP (i))
{
mpz_set_intmax (*tmp, XFIXNUM (i));
- return tmp;
+ /* The unnecessary cast pacifies a buggy GCC 4.8.5. */
+ return (mpz_t const *) tmp;
}
return xbignum_val (i);
}